<?php

declare(strict_types=1);

namespace Plugin\Attractions\AttractionManagement\Model\Attraction_booking;

use Hyperf\Database\Model\SoftDeletes;
use Hyperf\DbConnection\Model\Model;

/**
 * @property int $id 预约订单编号
 * @property int $user_id 用户id
 * @property int $info_id 预约活动信息id
 * @property string $booking_day 预约日期
 * @property string $booking_time 预约时间段
 * @property int $status 预约状态1已预约2已取消3已使用
 * @property \Carbon\Carbon $created_at 
 * @property \Carbon\Carbon $updated_at 
 * @property string $deleted_at 
 */
class AttractionUserBooking extends Model
{
    use SoftDeletes;
    /**
     * The table associated with the model.
     */
    protected ?string $table = 'attraction_user_booking';

    /**
     * The attributes that are mass assignable.
     */
    protected array $fillable = ['id', 'user_id', 'info_id', 'booking_day', 'booking_time', 'status', 'created_at', 'updated_at', 'deleted_at'];

    /**
     * The attributes that should be cast to native types.
     */
    protected array $casts = ['id' => 'integer', 'user_id' => 'integer', 'info_id' => 'integer', 'status' => 'integer', 'created_at' => 'datetime', 'updated_at' => 'datetime'];
}
